package com.example.deliveryapplication.sql

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import androidx.room.Update
import com.example.deliveryapplication.entity.BearingModel
import com.example.deliveryapplication.entity.Client

@Dao
interface BearingModelDao {
    @Insert
    fun insertChart(bearingModel: BearingModel): Long
    @Query("select * from BearingModel")
    fun loadAllChart(): List<BearingModel>
    @Query("select * from BearingModel where id=:id")
    fun loadModelById(id:String): BearingModel
    @Delete
    fun deleteModel(bearingModel: BearingModel): Int
    @Update
    fun updateModel(bearingModel: BearingModel): Int
}